<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>主页</title>
<jsp:include page="/common.jsp"></jsp:include>
<script type="text/javascript">
	$(function(){
		goShow();
	});
</script>
<body data-spy="scroll" data-target=".subnav" data-offset="50">
	<!--        悬浮导航-->
	<div class="navbar navbar-fixed-top">
		<div class="navbar-inner">
			<div class="container">
				<a class="btn btn-navbar" data-toggle="collapse"
					data-target=".nav-collapse"> <span class="icon-bar"></span> <span
					class="icon-bar"></span> <span class="icon-bar"></span>
				</a> <a class="brand" href="#">Crm管理系统</a>
				<div class="nav-collapse">
					<!--  <ul class="nav">
                          <li class="">
                              <a href="#" onclick="goShow()">首页</a>
                          </li>
                          <li class="">
                              <a href="#" onclick="goMenu()">菜单管理</a>
                          </li>
                     </ul> -->
					<div class="pull-right">
						<button class="btn btn-primary" onclick="tologin()">注销</button>
						<button class="btn btn-primary" onclick="close_page()">退出</button>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div class="container" style="padding-top: 30px;">
		<header class="jumbotron subhead">
			<!--                <h1>组件</h1>
                                <p class="lead">
                                    Bootstrap内置几十种高可用的组件，以实现导航栏，通知，弹出框等功能。
                                </p>-->
			<p class="lead"></p>
		<%-- 	<div class="subnav">
				<ul class="nav nav-pills">
					<c:forEach var="menu" items="${menus }">
						<c:if test="${menu.father==null }">
							<li class="dropdown">
								<a class="dropdown-toggle" data-toggle="dropdown" href="#"> ${menu.name} 
								<b class="caret"></b>
								</a>
								<ul class="dropdown-menu">
									<!-- links -->
										<c:forEach var="menu1" items="${menus }">
										<c:if test="${menu.id==menu1.father.id }">
										<li><a href="#" onclick="goView('${menu1.id}')">${menu1.name}</a></li>
										</c:if>
									</c:forEach>
							</ul>
							
							</li>
						</c:if>
					</c:forEach>
				</ul>
			</div> --%>
		</header>

		<div class="row">
			<div class="span2">
				<div class="well" style="padding: 8px 0;">
					<ul class="nav nav-list">
						<li class="nav-header">列表头</li>
						<li><a href="#" onclick="goShow()">首页</a></li>
						<li><a href="#" onclick="goView('system/menu?list')">菜单管理</a></li>
						<li><a href="#" onclick="goFile()">文件上传</a></li>
						<li class="nav-header">另一个列表头</li>
						<li><a href="#" onclick="goStore()">仓库管理</a></li>
						<li><a href="#" onclick="goView('sales/salesTicket?list')">销售记录管理</a></li>
						<li><a href="#" onclick="goView('system/user?list')">用户管理</a></li>
						<li class="divider"></li>
						<li><a href="#">帮助</a></li>
					</ul>
				</div>
			</div>
			<div class="span10" id="view">
			<!--sidebar conent-->
			</div>
		</div>
	</div>
</body>
</html>
